package com.bobo.dao.topic;

import com.bobo.dao.IBaseDao;
import com.bobo.dto.VCTopic;
import com.bobo.model.Topic;

import java.util.List;
import java.util.Map;

/**
 * Created by bobo on 16-10-28.
 */
public interface ITopicDao extends IBaseDao<Topic> {


    public Integer create(Topic topic);

    public boolean update(Topic topic);

    public Topic getById(Integer id);

    public List<Topic> getTopics(Integer userId,Integer categoryId,Integer current, Integer pageSize, Integer status);

    public List<VCTopic> getTus(Integer userId,Integer current, Integer pageSize);

    public List<Topic> getTops(Integer top);

    public List<Topic> getLike(Integer current, Integer pageSize, String like);

    public Integer getCount(Integer status,Integer userId,Integer categoryId);

    public List<VCTopic> getVCTopics(Integer current, Integer pageSize, String sortName, String sort, String like);

    public Integer getVCTCount(String like);


}
